package cn.wsn2018.tools.util;

import java.io.PrintWriter;
import java.io.StringWriter;

/**
 * @program: tools
 * @description
 * @author: songDaisong
 * @create: 2019-12-08 13:47
 **/
public class ExceptionUtil {


    public static String getErrmessage(Throwable e){
        StringWriter stringWriter=new StringWriter();
        e.printStackTrace(new PrintWriter(stringWriter,true));
        return stringWriter.getBuffer().toString();
    }


}
